import React, { Component } from 'react'
import { Text, StyleSheet, View } from 'react-native'
import { createStackNavigator } from '@react-navigation/stack'
import NewsSreen from '../screens/NewsScreen'
import { NavigationContainer } from '@react-navigation/native';
const Stack = createStackNavigator()
export default class NewsStack extends Component {
  render() {
    return (
      <Stack.Navigator initialRouteName="NewsScreen"  screenOptions={{
        headerShown: true
      }}>
        <Stack.Screen name="NewsScreen" component={NewsSreen}
        
          options={{
            title: "新闻列表",
            headerStyle: {
              backgroundColor: '#fff'
            }
          }}>
        </Stack.Screen>
      </Stack.Navigator>
    )
  }
}

const styles = StyleSheet.create({})

